package com.xuelangyun;

import com.xuelangyun.service.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/** @Version 1.0 @Author:xinyan @Date:2022/4/16 @Content: */
public class AutowriedStart {
  public static void main(String[] args) {
    //
    ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("autowired.xml");
    UserService userService = (UserService) classPathXmlApplicationContext.getBean("userService");
    userService.test();
  }
}
